package jddk;

import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.stream.Collectors;

import org.eclipse.jetty.http.MimeTypes;

public class Test {

	public static void main(String[] args) {

		List<String> sList = Arrays.asList("a", "b", "c");
		sList.forEach((t) -> {
			System.out.println(t);
		});

		sList.forEach(new Consumer<String>() {
			@Override
			public void accept(String t) {
				System.out.println(t);
			}
		});

		String a = "aqqq";

		Optional<String> ops = Optional.ofNullable(a);

		String aaaa = ops.orElseThrow(() -> new RuntimeException());

		System.out.println(ops.orElseThrow(() -> new RuntimeException()));

		sList.stream().collect(Collectors.toList());


		
		
		

		//ArrayUtil.append(buffer, newElements)

		//AMOUNT=12.88&ORDERID=201903055444545195694&Shl_id=133323&ST_NO=440582111111111111&YKT_id=3&PUB=DOq7a/DtNwvCCzC7Z6f2eAzqu2vw7T

		//AMOUNT=12.88&ORDERID=201903055444545195694&Shl_id=133323&ST_NO=440582111111111111&YKT_id=3&PUB=DOq7a/DtNwvCCzC7Z6f2eAzqu2vw7T
		//AMOUNT=12.88&ORDERID=201903055444545195694&Shl_id=133323&ST_NO=440582111111111111&YKT_id=3&PUB=DOq7a/DtNwvCCzC7Z6f2eAzqu2vw7T
		//aaf92b55c055b7d5ef3e6a188014c595
		//aaf92b55c055b7d5ef3e6a188014c595
		//aaf92b55c055b7d5ef3e6a188014c595

		System.out.println(MimeTypes.Type.APPLICATION_JSON_UTF_8);

	}

}
